<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<import type="js" file="js.jquery" />
<import type="js" file="js.common" />
<import type="css" file="css.global" />
<import type="css" file="css.form" />
<import type="js" file="js.jquery#form" />
</head>
<body>
<div class="search">
	<b>数字证书管理</b>
</div>
<form action="__APP__/Certificates/create" method="post" name="form1">
<div id="form">
<table>
    <tr>
    	<td class="titlename">姓名：</td>
    	<td><input type="text" value="{$name}" name="name" readonly class="readonly" /></td>
    <tr>
    	<td class="titlename">用户名：</td>
    	<td><input type="text" value="{$user_name}" name="user_name" readonly class="readonly" /></td>
    <tr>
    	<td class="titlename">证书口令：</td>
    	<td>
    		<label><input type="radio" name="type" value="1" checked>自动生成</label>&nbsp;&nbsp;
    		<label><input type="radio" name="type" value="2">手动输入生成</label>
    		<!--<label class="cakey" ><input type="text" name="key" /></label>-->
    	</td>
    </tr>
    <tr>
		<td class="titlename"> </td>
		<td>
			<input type="submit" name="submit" class="submit" value="生成证书">
		</td>
    </tr>
</table>
</div>
</form>
</body>
<script language="javascript">
$(document).ready(function(){  
//	$(".cakey").hide();
	$(".stripe tr").mouseover(function(){    
	  $(this).addClass("over");}).mouseout(function(){   
			$(this).removeClass("over");}) 
  	$(".stripe tr:even").addClass("alt");
/*	$("input[name='type']").click(function(){
		if( $(this).val() == 2 )
			$(".cakey").show();
		else
			$(".cakey").hide();
	}); */
	var option = {
			beforeSubmit : CheckForm,
			success : complete,
			error : warning,
			type : 'post',
	};
	$("#form1").submit(function(){
		$(this).ajaxSubmit(option);return false;
	});
}); 

function CheckForm(){
}
var url = "__APP__/Certificates/";
function create(id){
	window.location.href = url+"issued?id="+id;
}
function again(id){
	window.location.href = url+"again?id="+id;
}
function logoff(id){
	window.location.href = url+"logoff?id="+id;
}
</script>  
</html>